java check if file exists

105

java check if file exists -

import java.io.File;

File tmpDir = new File("/var/tmp");
boolean exists = tmpDir.exists();

Comments

Submit
0 Comments